import request from '@/utils/request'

// 查询门诊卡信息列表
export function listOpCardInfo(query) {
  return request({
    url: '/medical/outpatient/opCardInfo/list',
    method: 'get',
    params: query
  })
}

// 查询门诊卡信息详细
export function getOpCardInfo(id) {
  return request({
    url: '/medical/outpatient/opCardInfo/' + id,
    method: 'get'
  })
}

// 新增门诊卡信息
export function addOpCardInfo(data) {
  return request({
    url: '/medical/outpatient/opCardInfo',
    method: 'post',
    data: data
  })
}

// 修改门诊卡信息
export function updateOpCardInfo(data) {
  return request({
    url: '/medical/outpatient/opCardInfo',
    method: 'put',
    data: data
  })
}

// 删除门诊卡信息
export function delOpCardInfo(id) {
  return request({
    url: '/medical/outpatient/opCardInfo/' + id,
    method: 'delete'
  })
}
